package com.bilibili.lzx.api;

import com.bilibili.lzx.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author lzx
 * @date 2024/8/5 20:05
 */
@RestController
public class DemoApi {

    @Resource
    private DemoService demoService;

    @GetMapping("/query")
    public Map<String, Object> query( @RequestParam Long id){
        return demoService.query(id);
    }
}
